import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ToastrComponent } from './toastr/toastr.component';
import { DemoComponent } from './demo.component';

const routes: Routes = [
  {
    path: '',
    component: DemoComponent,
    children: [
      {
        path: 'toastr',
        component: ToastrComponent,
        data: {
          title: '消息提示框（toastr）'
        },
      }
    ]
  }
];

export const ROUTED_COMPONENTS = [DemoComponent, ToastrComponent];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class NgwDemoRoutingModule {}
